CREATE TABLE [dbo].[TCCOMP_PERC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_COMP_PERC] [dbo].[TD_VC_020] NOT NULL,
[FE_COMP_PERC] [dbo].[TD_DT_001] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NO_CLIE] [dbo].[TD_VC_100] NOT NULL,
[NU_RUCC] [dbo].[TD_VC_020] NULL,
[CO_BANC] [dbo].[TD_VC_003] NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NULL,
[CO_CAJA] [dbo].[TD_VC_008] NULL,
[AA_BACA] [dbo].[TD_VC_004] NULL,
[MM_BACA] [dbo].[TD_VC_002] NULL,
[NU_COMP_BACA] [dbo].[TD_VC_008] NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCOMP_PE__CO_US__5047A26B] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCOMP_PE__FE_US__513BC6A4] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCOMP_PE__CO_US__522FEADD] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCOMP_PE__FE_US__53240F16] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCOMP_PERC] ADD CONSTRAINT [PK__TCCOMP_P__258E6F3B4D6B35C0] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_COMP_PERC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCOMP_PERC] ADD CONSTRAINT [FK__TCCOMP_PE__CO_EM__4F537E32] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
